/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package core.threads.server;

import models.*;

/**
 * 处理正常摸牌的线程
 * @author Invince
 */
public class 舍弃版本_Deck_Process implements Runnable{

    public synchronized  void run() {
        Server_Public_Data.MessageDeck mDeck=Server_Public_Data.deckQueue.remove();//注意，取不到会报错的，所以顺序一定要注意，先放到messageBox，在唤醒Deck_Process
        Player player=Server_Public_Data.game.getListPlayer().get(mDeck.getPlayerID());
        int nbCard=mDeck.nbCard;
        player.getDeckPlayer().drawCardFromBaseDeck(nbCard, Server_Public_Data.game.getBaseDeck());
        Server_Public_Data.refreshScreen();
    }

}
